package org.hegang.design.first.builderpattern;

import javax.sound.midi.Soundbank;

/**
 * @ClassName BuilderPatternMain
 * @Describe: 建造者模式
 * @Author: gang.he
 * @Email: SmileSkylife@outlook.com
 * @Date: Created in 22:57 2019/7/1
 * @Modified_By: TODO
 * @Version: V1.0
 */
public class BuilderPatternMain {
    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();

        Meal vegMeal = mealBuilder.prepareVegMeal();
        System.out.println("Veg Burger");
        vegMeal.showItems();
        System.out.println("Price:" + vegMeal.getCost());

        Meal nonVegMeal = mealBuilder.prepareNonVegMeal();
        System.out.println("==========================");
        System.out.println("NON Veg Burger");
        nonVegMeal.showItems();
        System.out.println("Price:" + nonVegMeal.getCost());
    }
}
